<template>
  <input @input="handleInput" :value="value"/>
</template>

<script>
  export default {
    name: 'MyInput',
    props: {
      value: {
        type: [String, Number],
        default: ''
      }
    },
    methods: {
      handleInput (event) {
        let value = event.target.value
        this.$emit('input', value)
      }
    }
  }
</script>
